package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.AppRegistNumStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.AppRegistNumStatsearchRequest;
import com.tuanzi.loan.vo.response.statistics.AppRegistNumStatsearchResponse;
import org.springframework.data.domain.Page;

public class AppRegistNumStatLazyModel extends BaseLazyDataModel<AppRegistNumStatsearchRequest,AppRegistNumStatsearchResponse>{

    private AppRegistNumStatService service = SpringContextHolder.getBean(AppRegistNumStatService.class);

    public AppRegistNumStatLazyModel(AppRegistNumStatsearchRequest appRegistNumStatsearchRequest) {
        super(appRegistNumStatsearchRequest);
    }

    @Override
    protected Page<AppRegistNumStatsearchResponse> doLoad(PageSearcher<AppRegistNumStatsearchRequest> pageSearcher) {
        return service.list(pageSearcher);
    }
}
